
public class STNode {
	String content;
	STNode childArray[];
	
	public STNode(String text, int numLinks){
		content = text;
		childArray = new STNode[numLinks];
	}

	public void assignChild(int childNum, STNode stNode){
		childArray[childNum] = stNode;
	}

	public void print(int numDots){
		String dots = "";
		for(int i = 0; i < numDots ; i++){
			dots += '.';
		}
		System.out.println(dots + content);
		for(int i = 0; i < childArray.length ; i++){
			childArray[i].print(numDots+1);
		}
	}

	@Override
	public String toString() {
		return "STNode [content=" + content + "]";
	}
}
